<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
	<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
	
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<script language="JavaScript" src="scripts/ts_picker.js"></script>
<title>SubordinareLeaveHistory</title>
</head>
<body>
<div style="height: 119px; margin-left: 1px">
        <h1 style="text-align: center">
            Leave Application</h1><div id="sidebar1" style="width: 199px; height: 266px">
	<h2>Menu</h2>
	
	<p><a href="LeaveApplyJSP.jsp">Apply Leave</a></p>
	<p style="width: 202px; "><a href="PersonalLeaveHistory.jsp">View Personal Leave History</a></p>
	<p><a href="PersonalLeaveUpdate.jsp">Edit Leave(s)</a></p>
	
	<p><a href="LogoutServlet.jsp">Logout</a></p>
  	<!-- end #sidebar1 --></div>
        </div>
        <div style="margin-left: 248px; height: 379px; width: 496px;"><div>

	<form action="/ViewApprove" method=post>

		<table border=2>
			<tr>
				<td>EmployeID</td>
				<td>View Detail Leave History</td>

			</tr>
			<tr>
				<c:forEach var="leave" items="${leaves}" varStatus="idx">
					<tr>
						<td>${idx.index+1 }</td>
						<td>${leave.EmployeeID}</td>
						<td>

						<c:url var="detailurl" scope="page"	value="/PersonalLeaveListing.jsp">
							
							<c:param name="EmployeeID" value="${leaves.EmployeeID}" />
						</c:url>
						
						<c:url var="url" scope="page" value="/LeaveHistory.jsp"></c:url>
						 <a href="${url}">DetailLeaveHistory</a></td>
						


					</tr>
				</c:forEach>
		</table>


	</form></div></div>
</body>
</html>